package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    //查询菜品关联的套餐
    List<Long> getSetmealIdByDishIds(List<Long> dishIds);
    //插入套餐中菜品
    void insertBatch(List<SetmealDish> setmealDishes);
    //查询套餐中菜品
    @Select("select * from setmeal_dish where setmeal_id = #{id}")
    List<SetmealDish> getDishBySetmealId(Long id);
    //删除套餐菜品数据
    void delete(List<Long> ids);
}
